# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-contacts
pkgver=45.0
pkgrel=0
pkgdesc="A contacts manager for GNOME"
url="https://wiki.gnome.org/Apps/Contacts"
# s390x: doubt anyone would use this on a mainframe
arch="all !s390x"
license="GPL-2.0-or-later"
makedepends="
	desktop-file-utils
	evolution-data-server-dev
	folks-dev
	glib-dev
	gnome-desktop-dev
	gnome-online-accounts-dev
	gtk4.0-dev
	libadwaita-dev
	libgee-dev
	libportal-dev
	libqrencode-dev
	meson
	telepathy-glib-dev
	vala
	"
checkdepends="appstream-glib"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-contacts/${pkgver%.*}/gnome-contacts-$pkgver.tar.xz"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
691cbd9fc1ff0e9e7a2549f522ea7ef5b73eee976fb48b2b250b8be9775737938d9fd0ffa66374dc20028d764e96605caae1be7c32689371a58ee5e78bd7c28b  gnome-contacts-45.0.tar.xz
"
